const Router = require('koa-router')

const router = new Router({ prefix: '/news' })

const { executeNewsWorkflow } = require('../controller/getDailyChinaNews')

// API路由
router.get('/execute', async (ctx) => {
    ctx.body = await executeNewsWorkflow();
});


module.exports = router